package cheme.ProcessModel.ProcessUnits;

import java.io.Serializable;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

import cheme.ProcessModel.IModelElement;
import cheme.ProcessModel.Visitors.IModelVisitor;

public class Mixer extends ProcessUnit implements Serializable
{
	/*
	 * Serialization version identifier. (Set to default for now)
	 */
	
	private static final long serialVersionUID = 1L;

	/*
	 * Needed for simple factory creation via Class.newInstance(). So don't remove this huh?
	 */
	public Mixer()
	{
		this((IModelElement)null);
	}
	
	public Mixer(IModelElement parent)
	{
		super(parent);
		initializeStreamCharacteristics(UNLIMITED, 1);
	}
	
	public Mixer(Element xmlDoc)
	{
		super(xmlDoc);
		initializeStreamCharacteristics(UNLIMITED, 1);
	}

	public Object accept(IModelVisitor ruleChecker)
	{
		return ruleChecker.visit(this);
	}
	
	public String toXml()
	{
		return super.toXml("Mixer");
	}
}
